

import Fetch from "../utils/fetch"
import Request from "../utils/request"


// 统一接口文件配置

// 首页轮播图接口    axios实现

// export  const   banner =  () => Fetch.get("/banner")
export const banner = () => Request({
    url: "/api/banner",
    headers: {
        DeviceType: "H5"
    }
})

// 首页接口
// export  const   cartList =  () => Fetch.get("/recommend/appIndex")
export const cartList = () => Request({
    url: "/api/recommend/appIndex",

})
// 课程详情
export const courseInfo =(data)=>Request({
    url:`/api/courseInfo/basis_id=${data}`,
})
// 讲师详情
export const teacher =(data)=>Request({
    url:`/api/teacher/${data}`,
})

// 课程
export const courseBasis = (data) => Request({
    url: `/api/courseBasis?`,
})

